package com.ly.mapper;

import com.ly.po.TClassPO;
import com.ly.pojo.Students;
import com.ly.pojo.TClass;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TClassMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TClass record);

    int insertSelective(TClass record);

    TClass selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TClass record);

    int updateByPrimaryKey(TClass record);

    List<TClass> selectTClass();

    List<TClass> selectTClassBySearch(String searchText);

    TClass selectByCode(String classCode);

    List<TClassPO> selectTClassPO();

    int updateHeadTeacherByTno(Long tno);

    String selectClassCodeById(Integer id);

    void updateCountByClassCode(String classCode, int count);

    void updateSubCountByClassCode(String classCode, int count);
}